function openPopup() {
    var popup = document.getElementById("popupContainer");
    popup.style.display = "block";
}

function saveName() {
    var nameInput = document.getElementById("nameInput");
    var nameDisplay = document.getElementById("nameDisplay");
    var name = nameInput.value;
    nameDisplay.innerHTML = "您输入的姓名是：" + name;
    closePopup();
}

function closePopup() {
    var popup = document.getElementById("popupContainer");
    popup.style.display = "none";
}